package com.pro.service.imple;

import com.pro.mapper.JsUserOrderCompletedMapper;
import com.pro.pojo.JsUserOrder;
import com.pro.service.JsUserOrderCompletedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserOrderCompletedServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/10 上午 10:34
 * @Author: WYH
 */
@Service
public class JsUserOrderCompletedServiceImple implements JsUserOrderCompletedService {

    @Autowired(required = false)
    private JsUserOrderCompletedMapper jsUserOrderCompletedMapper;

    @Override
    public List<JsUserOrder> getAllorder(String orderPaymentChannel, String orderSource) {
        List<JsUserOrder> allorder = jsUserOrderCompletedMapper.getAllorder(orderPaymentChannel, orderSource);
        return allorder;
    }

    @Override
    public int count(String orderPaymentChannel, String orderSource) {
        int count = jsUserOrderCompletedMapper.count(orderPaymentChannel, orderSource);
        return count;
    }

    @Override
    public Boolean delOrder(Integer orderId) {
        Boolean aBoolean = jsUserOrderCompletedMapper.delOrder(orderId);
        return aBoolean;
    }
}
